import {
    DIC
} from '@/const/dic'
export const tabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: false,
    size: 'mini',
    menuBtn: true,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "审批单号",
        prop: "coded",
    },{
        label: "审批状态",
        prop: "state",
        slot: true,
    },{
        label: "入库类型",
        prop: "wareState",
        slot: true,
    },{
        label: "仓库",
        prop: "warehouse",
        slot: true,
    },{
        label: "总金额(元)",
        prop: "totalPrice",
    },{
        label: "供应商",
        prop: "supplier",
        slot: true,
    },{
        label: "申请人",
        prop: "applyUserInfoName",
    },{
        label: "申请时间",
        prop: "applyDate",
    },{
        label: "审批人",
        prop: "dealUserName",
    },{
        label: "审批时间",
        prop: "dealDate",
    }]
};

export const addModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    menuBtn: false,
    menu: false,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuAlign: "center",
    column: [{
        label: "物品编号",
        prop: "coded",
    },{
        label: "物品名称",
        prop: "name",
    },{
        label: "规格",
        prop: "specs",
    },{
        label: "数量",
        prop: "num",
        slot:true,
    },{
        label: "单位",
        prop: "unit",
    },{
        label: "单价(元)",
        prop: "price",
        slot:true,
    },{
        label: "总金额(元)",
        prop: "totalNum",
    },{
        label: "批次号",
        prop: "batch",
        slot:true,
    },{
        label: "生产单位",
        prop: "productionUnit",
        slot:true,
    },{
        label: "生产日期",
        prop: "productionTime",
        slot:true,
    },{
        label: "过期日期",
        prop: "overdueTime",
        slot:true,
    }]
};

export const addModeSelectModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    menuBtn: true,
    menu: false,
    size: 'mini',
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "物品编号",
        prop: "coded",
    },{
        label: "物品名称",
        prop: "name",
    },{
        label: "规格",
        prop: "specs",
    },{
        label: "库存量",
        prop: "inventoryCount",
    },{
        label: "单位",
        prop: "unit",
    }
    ]
};

export const examineModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: false,
    menuBtn: false,
    menu: false,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    size: 'mini',
    align: "center",
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "物品编号",
        prop: "coded",
        slot: true
    },{
        label: "物品名称",
        prop: "name",
        slot: true
    },{
        label: "规格",
        prop: "specs",
        slot: true
    },{
        label: "数量",
        prop: "num",
    },{
        label: "单位",
        prop: "unit",
        slot: true
    },{
        label: "单价(元)",
        prop: "price",
    },{
        label: "总金额(元)",
        prop: "totalPrice",
    },{
        label: "批次号",
        prop: "batch",
    },{
        label: "生产单位",
        prop: "producers",
    },{
        label: "生产日期",
        prop: "purchasingDate",
    },{
        label: "过期日期",
        prop: "overdueDate",
    }]
};

export const examineModeTabOption2 = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    menuBtn: false,
    menu: false,
    addBtn:false,
    cellBtn: false,
    size: 'mini',
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "物品编号",
        prop: "coded",
    },{
        label: "物品名称",
        prop: "name",
    },{
        label: "规格",
        prop: "specs",
    },{
        label: "数量",
        prop: "num",
    },{
        label: "单位",
        prop: "unit",
    },{
        label: "单价(元)",
        prop: "price",
    },{
        label: "总金额(元)",
        prop: "totalNum",
    },{
        label: "批次号",
        prop: "batch",
    },{
        label: "生产单位",
        prop: "productionUnit",
    },{
        label: "生产日期",
        prop: "productionTime",
    },{
        label: "过期日期",
        prop: "overdueTime",
    }]
};

export const addModeSelectCgdModeTabOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    size: 'mini',
    menuBtn: true,
    menu: false,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "审批编号",
        prop: "coded",
    },{
        label: "总金额(元)",
        prop: "totalPrice",
    },{
        label: "供应商",
        prop: "supplierName",
    },{
        label: "申请人",
        prop: "applyUserInfoName",
    },{
        label: "申请时间",
        prop: "purchasingDate",
    }]
};
